//
//  BaseAPIManger.h
//  FindJob
//
//  Created by 233 on 16/3/1.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import <Foundation/Foundation.h>
//
//
// AFNetWorking

typedef void(^successBlock)(id);

// 定义枚举的变量
typedef NS_ENUM(NSInteger,RespondsStatus) {
    RespondsStatusSuccess = 0,
    RespondsStatusDataError,
    RespondsStatusNotworkingError
//    RespondsStatusTimeout,
};


@interface BaseAPIManger : NSObject
// success:(void(^)(id respondsObj)) ==>success:(successBlock)
- (void)startRequestURL:(NSString *)urlString parameters:(NSDictionary *)parameter success:(void(^)(id responds))success failure:(void(^)(NSError *error))failure timeout:(NSTimeInterval )timeoutInterval;

- (void)cancelRequest;
@end
